package pcsr.drivers.nxtDriver;

enum NXTPort {
	Actuator_A( 0 ),
	Actuator_B( 1 ), 
	Actuator_C( 2 ), 
	Sensor_1( 0 ), 
	Sensor_2( 1 ), 
	Sensor_3( 2 ), 
	Sensor_4( 3 );
	
	private int portNumber;
	
	
	private NXTPort( final int value )
	{
		if(value < 0 || value > 3)
		{
			throw new IllegalArgumentException("NXTPort values between 0 and 6.");
		}
		portNumber = value;
	}
	
	public int GetPortID( )
	{
		return portNumber;
	}
	
}
